﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PostAuditList.aspx.cs" Inherits="StudentManage.Web.Admin.Management.PostManage.PostAuditList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register src="/Admin/PageHead/UC_Head.ascx" tagname="UC_Head" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <uc1:UC_Head ID="UC_Head1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="HidProjectId" runat="server" Value="" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="/Admin/images/mail_leftbg.gif">
                <img src="/Admin/images/left-top-right.gif" width="17" height="29" />
            </td>
            <td height="29" valign="top" background="/Admin/images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt"><%=GetTypeName()%></div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="/Admin/images/mail_rightbg.gif">
                <img src="/Admin/images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="/Admin/images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td class="left_txt">
                                        当前位置：<%=GetTypeName()%>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="1" bgcolor="#CCC">
                                        
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding:10px 0px;">
                                        <table width="100%" border="0" cellpadding="0" cellspacing="0" node-type="header_table">
                                            <tr>
                                                <td align="right" style="width: 60px;">
                                                    部门名称：
                                                </td>
                                                <td style="width: 100px;">
                                                    <asp:DropDownList ID="Drop1" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                                <td align="right" style="width: 80px;">
                                                    岗位分类：
                                                </td>
                                                <td style="width: 100px;">
                                                    <asp:DropDownList ID="Drop_ProjectType" runat="server">
                                                    </asp:DropDownList>
                                                </td>
                                                <td align="right" style="width: 80px;">
                                                    职位名称：
                                                </td>
                                                <td style="width: 200px;">
                                                    <asp:TextBox ID="txt_title" runat="server"></asp:TextBox>
                                                </td>
                                                <td align="left">
                                                    <asp:Button ID="Btn_Search" runat="server"  Text="查询" 
                                                        onclick="Btn_Search_Click"/>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table120" style="border-collapse:collapse;">
                                            <thead class="nowtable">
                                                <tr>
                                                    <th style="width:40px;height: 25px; line-height: 25px;">
                                                        序号
                                                    </th>
                                                    <th>
                                                        部门名称
                                                    </th>
                                                    <th style="width:150px;">
                                                        职位名称
                                                    </th>
                                                    <th>
                                                        岗位性质
                                                    </th>
                                                    <th>
                                                        负责人
                                                    </th>
                                                    <th>
                                                        联系电话
                                                    </th>
                                                    <th>
                                                        需求人数
                                                    </th>
                                                    <th style="width:150px;">
                                                        发布时间
                                                    </th>
                                                    <th style="width: 100px;">
                                                        所属学院
                                                    </th>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.审批申请人), User.Identity.Name))
                                                    {%><th>已申请</th><% }%>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.查看已申请人), User.Identity.Name))
                                                    {%><th>已审核</th><% }%>
                                                    <%
                                                        if (Convert.ToInt32(Request.QueryString["TypeId"]) != Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.勤工助学))
                                                        { 
                                                            %>
                                                                <th style="width:60px;">成绩表</th>
                                                            <%
                                                        }
                                                     %>

                                                    <th style="width:60px;">查看</th>
                                                    <th style="width:60px;">取消审批</th>
                                                    <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.删除已审批项目), User.Identity.Name))
                                                    {%><th style="width:60px;">删除</th><% }%>
                                                </tr>
                                            </thead>
                                            <tbody id="UserTbody">
                                                <asp:Repeater ID="RepPostList" runat="server" 
                                                    onitemcommand="RepPostList_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td><%=GetXN()%></td>
                                                            <td><%#GetDepartmentName(Eval("Departmentid").ToString())%></td>
                                                            <td><%#Eval("Title")%></td>
                                                            <td><%#GetPositonName(Eval("PositionTypeId").ToString())%></td>
                                                            <td><%#Eval("FuZheRenName")%></td>
                                                            <td><%#Eval("Tel")%></td>
                                                            <td><%#Eval("RecruitCount")%></td>
                                                            <td><%#Eval("AddTime")%></td>
                                                            <td><%#GetXYName(Eval("College").ToString())%></td>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.审批申请人), User.Identity.Name))
                                                            {%><td><a href="/Admin/Management/PersonalManage/UnAuditPersonalList.aspx?Pid=<%#Eval("id")%>"><span style="color:#f90; font-weight:600;"><%#GetUnAuditPersonal(Convert.ToInt32(Eval("id")), false)%>(人)</span></a></td><% }%>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.查看已申请人), User.Identity.Name))
                                                            {%><td><a href="/Admin/Management/PersonalManage/AuditPersonalList.aspx?Pid=<%#Eval("id")%>"><span style="color:#f90; font-weight:600;"><%#GetUnAuditPersonal(Convert.ToInt32(Eval("id")), true)%>(人)</span></a></td><% }%>
                                                            <%
                                                                if (Convert.ToInt32(Request.QueryString["TypeId"]) != Convert.ToInt32(StudentManage.Data.EnumData.ProjectType.勤工助学))
                                                                { 
                                                                    %>
                                                                    <td><a href="ScoreList.aspx?Pid=<%#Eval("id")%>"><img src="../../images/format.gif" border="0" width="16" height="16" /></a></td>
                                                                    <%
                                                                }
                                                             %>
                                                            <td><asp:Button ID="But_view" runat="server" CssClass="RepBtnView" CommandArgument=<%#Eval("id")%> CommandName="View" /></td>
                                                            <td><asp:Button ID="But_UnAudit" runat="server" CssClass="RepBtnUn" OnClientClick="return confirm('确定取消审批？');" CommandArgument=<%#Eval("id")%> CommandName="UnAudit" /> </td>
                                                            <%if (StudentManage.Web.UtilityUI.IsExistsPrivCode(this.GetPrivCode(StudentManage.Data.EnumData.PrivBtnType.删除已审批项目), User.Identity.Name))
                                                            {%><td><asp:Button ID="Btn_Del" runat="server" OnClientClick="return confirm('确定删除？');" CssClass="RepBtnDel" CommandArgument=<%#Eval("id")%> CommandName="Del" /></td><% }%>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                        <webdiyer:aspnetpager id="AspNetPager1" runat="server" pagesize="10" 
                                            firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" prevpagetext="上一页" showpageindex="true">
                                         </webdiyer:aspnetpager>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../images/mail_leftbg.gif">
                <img src="../../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="../../images/buttom_bgs.gif">
                <img src="../../images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="../images/mail_rightbg.gif">
                <img src="../../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>


    <div class="sp-dialog-box" id="dialog-form" style="display: none;" title="岗位详细">
        <div style="width: 650px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
                <tr>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        部门名称：
                    </td>
                    <td>
                        <asp:Label ID="lab_Departmen" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        职位性质：
                    </td>
                    <td>
                        <asp:Label ID="lab_PositionType" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        负责老师：
                    </td>
                    <td>
                        <asp:Label ID="lab_FuZheRenName" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        联系电话：
                    </td>
                    <td style="">
                        <asp:Label ID="lab_Tel" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: 600;">
                        职位名称：
                    </td>
                    <td>
                        <asp:Label ID="lab_title" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        需求人数：
                    </td>
                    <td>
                        <asp:Label ID="lab_RecruitCount" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        发布人：
                    </td>
                    <td>
                        <asp:Label ID="lab_CreateUser" runat="server"></asp:Label>
                    </td>
                    <td align="right" style="font-weight: 600;">
                        发布时间：
                    </td>
                    <td>
                        <asp:Label ID="lab_Addtime" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="top" style="font-weight: 600;">
                        岗位职责及要求：
                    </td>
                    <td colspan="7">
                        <asp:Label ID="lab_Contents" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <asp:Button Text="提交" runat="server" Style="display: none;" CssClass="die" ID="btPost"
                OnClick="btPost_Click" />
        </div>
    </div>
    <div id="dialog_target">
    </div>
    </form>
</body>
</html>

